<template>
  <div>
    <div class="title">
      <header class="header">
        <h3>门户菜单页面</h3>
      </header>
    </div>
    <div class="wrapper">
      <div class="container-fluid">
        <div class="row fill-h">
          <div class="col-lg-12 fill-h">
            <div class="xpanel-wrapper xpanel-wrapper-1">
              <div class="xpanel tablebox">
                <!-- 菜单栏 -->
                <div class="contentbox">
                  <img
                    class="iconimg"
                    v-for="(item, index) in layTable"
                    :Key="index"
                    :src="item.src"
                    alt=""
                    @click="gourl(item)"
                  />
                </div>
                <i class="el-icon-s-tools icontools"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
      layTable: [
        {
          id: 1,
          src: require("../assets/menhuimg/mhgl.png"),
          url: "/all/index",
        },
        { id: 2, src: require("../assets/menhuimg/xhyh.png") },
        { id: 3, src: require("../assets/menhuimg/znyd.png") },
        { id: 4, src: require("../assets/menhuimg/zhzhpt.png") },
        { id: 5, src: require("../assets/menhuimg/ztfx.png") },
        { id: 6, src: require("../assets/menhuimg/znyd.png") },
        { id: 7, src: require("../assets/menhuimg/znyd.png") },
        { id: 8, src: require("../assets/menhuimg/znyd.png") },
        { id: 11, src: require("../assets/menhuimg/znyd.png") },
        { id: 12, src: require("../assets/menhuimg/znyd.png") },
        { id: 13, src: require("../assets/menhuimg/znyd.png") },
        { id: 14, src: require("../assets/menhuimg/znyd.png") },
        { id: 15, src: require("../assets/menhuimg/znyd.png") },
        { id: 16, src: require("../assets/menhuimg/znyd.png") },
        { id: 17, src: require("../assets/menhuimg/znyd.png") },
        { id: 18, src: require("../assets/menhuimg/znyd.png") },
      ],
    };
  },
  methods: {
    handleClose(done) {
      this.$confirm("确认关闭？")
        .then((_) => {
          done();
        })
        .catch((_) => {});
    },
    gourl(item) {
      // this.$router.push(item.url);
      this.$router.push("/allrouter/index");
    },
  },
};
</script>

<style lang="scss" scoped>
html,
body {
  min-height: 635px;
  font-family: "microsoft yahei", arial, sans-serif;
  background-color: #0f1c30;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
.title {
  height: 125px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1920px;
}
.header {
  margin: 0 auto;
  width: 100%;
  height: 60px;
  max-width: 1920px;
  background: url("../assets/echartsimg/header.png") center no-repeat;
  box-sizing: border-box;
}
.header h3 {
  margin: 0;
  padding: 0;
  line-height: 60px;
  text-align: center;
  font-size: 24px;
  color: #5dc2fe;
}
.wrapper {
  position: absolute;
  top: 130px;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 555px;
}
.container-fluid {
  height: 100%;
  min-height: 100%;
}
.row > div {
  padding-left: 7px;
  padding-right: 8px;
}
.xpanel-wrapper {
  padding-bottom: 10px;
  box-sizing: border-box;
}
.xpanel-wrapper-1 {
  height: 100%;
}
.xpanel-wrapper-2 {
  height: 100%;
}
.xpanel-wrapper-3 {
  height: 100%;
}
.xpanel {
  padding: 15px;
  // padding-top: 10%;
  height: 100%;
  min-height: 170px;
  background: url("../assets/echartsimg/panel.png") center no-repeat;
  background-size: 100% 100%;
  // box-sizing: border-box;
}

/* tool */
.fill-h {
  height: 100%;
  min-height: 100%;
}
.no-margin {
  margin: 0 !important;
}
.no-padding {
  padding: 0 !important;
}

// 样式
.tablebox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding-left: 10%;
  padding-right: 10%;
  box-sizing: border-box;
  .icontools {
    position: absolute;
    font-size: 25px;
    color: #fff;
    top: 5%;
    right: 5%;
    cursor: pointer;
  }
}
.contentbox {
  display: flex;
  flex-direction: row;

  flex-wrap: wrap;
  // justify-content: space-around;
  justify-content: space-evenly;
  .iconimg {
    opacity: 0.9;
    width: 9%;
    padding: 0 5px;
    margin-right: 40px;
    transition: all 0.3s;
    &:hover {
      opacity: 1;
      transition: all 0.3s;
      transform: scale(1.2, 1.2);
      cursor: pointer;
    }
  }
}
</style>
